from django import forms
from core.models import ClassEvaluation

class ClassEvaluationForm(forms.ModelForm):
    def __init__(self, *args, **kwargs):
        self.user = kwargs.pop('user', None)
        super().__init__(*args, **kwargs)
        # if self.user:
        

    class Meta:
        model = ClassEvaluation
        fields = ['evaluation', 'remark']
        widgets = {
            'remark': forms.Textarea(attrs={'rows': 3}),
        }